package com.zdlyh.service;

import com.zdlyh.domain.ResponseResult;
import com.zdlyh.domain.dto.MenuDto;
import com.zdlyh.domain.entity.Menu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zdlyh.domain.vo.MenuVo1;

import java.util.List;

public interface MenuService extends IService<Menu> {
    List<String> getPermsByUserId(Long userId);

    List<Menu> getRouterMenuTreeByUserId(Long userId);

    List<MenuVo1> getMenuList(MenuDto menuDto);

    List<Long> selectMenuListByRoleId(Long roleId);

    ResponseResult addMenu(Menu menu);

    ResponseResult getMenuById(Long id);

    ResponseResult updateMenu(Menu menu);

    ResponseResult deleteMenuById(Long id);
}
